mkdir bin
echo "start --------------------------------2_compile.bat"
SET WORK_PATH=%CD%
cd /d %WORK_PATH%
SET TARGET=android-19
SET ANDROID_SDK_HOME=D:/Tools/adt-bundle-windows-x64-140321/sdk/platforms/android-19/android.jar

SET TEST_APP_LIBS=D:\work\mstpsdk_auotest\Sprint2\Android\AutoTestMachine\libs
cd /d %TEST_APP_LIBS%
dir /b mstplib-android-jni*.jar > "tmp.txt"
set /p "var=" < "tmp.txt"
del tmp.txt
echo %var%
cd /d %WORK_PATH%

SET ANDROID_JAR=%ANDROID_SDK_HOME%;libs/agora-rtc-sdk.jar;libs/android-async-http-1.4.8.jar;libs/classes.jar;libs/android-support-v4.jar;libs/bugly_crash_release.jar;libs/crasheye.jar;libs/eyibc.jar;libs/fastjson.jar;libs/gson-2.2.2.jar;libs/hamcrest-core-1.3.jar;libs/%var%

SET SOURCE_PATH=./gen;./src

::SET CLASSES_PATH=./bin/classes
SET ENCODING=utf-8
SET CLASS_TARGET=-target 1.7

javac -encoding %ENCODING% %CLASS_TARGET% -sourcepath "%SOURCE_PATH%" -classpath "%ANDROID_JAR%" -d bin gen\com\sinosun\autotestmachine\*.java
javac -encoding %ENCODING% %CLASS_TARGET% -sourcepath "%SOURCE_PATH%" -classpath "%ANDROID_JAR%" -d bin src\com\sinosun\autotestmachine\*.java
javac -encoding %ENCODING% %CLASS_TARGET% -sourcepath "%SOURCE_PATH%" -classpath "%ANDROID_JAR%" -d bin src\com\sinosun\autotestmachine\tools\*.java
javac -encoding %ENCODING% %CLASS_TARGET% -sourcepath "%SOURCE_PATH%" -classpath "%ANDROID_JAR%" -d bin src\com\sinosun\autotestmachine\tools\Collector\*.java
javac -encoding %ENCODING% %CLASS_TARGET% -sourcepath "%SOURCE_PATH%" -classpath "%ANDROID_JAR%" -d bin src\com\sinosun\autotestmachine\tools\Excutor\*.java
javac -encoding %ENCODING% %CLASS_TARGET% -sourcepath "%SOURCE_PATH%" -classpath "%ANDROID_JAR%" -d bin src\com\sinosun\autotestmachine\tools\parser\*.java
javac -encoding %ENCODING% %CLASS_TARGET% -sourcepath "%SOURCE_PATH%" -classpath "%ANDROID_JAR%" -d bin src\com\sinosun\autotestmachine\tools\proxy\*.java
javac -encoding %ENCODING% %CLASS_TARGET% -sourcepath "%SOURCE_PATH%" -classpath "%ANDROID_JAR%" -d bin src\com\sinosun\autotestmachine\tools\proxy\callback\*.java
javac -encoding %ENCODING% %CLASS_TARGET% -sourcepath "%SOURCE_PATH%" -classpath "%ANDROID_JAR%" -d bin src\com\sinosun\autotestmachine\tools\reader\*.java
javac -encoding %ENCODING% %CLASS_TARGET% -sourcepath "%SOURCE_PATH%" -classpath "%ANDROID_JAR%" -d bin src\com\sinosun\autotestmachine\tools\utils\*.java











